<template>
    <div>
        <el-dialog
            title="跟踪记录"
            :visible.sync="genzongFormData.dialogVisible"
            width="30%"
            center>
            <el-table :data="tableData" style="width: 100%;margin-top:20px" height="60vh">
                <el-table-column type="index" width="80" header-align="center" align="center" label="序号"></el-table-column>
                <el-table-column prop="czr" label="操作人" min-width="120" header-align="center" align="center"></el-table-column>
                <el-table-column prop="czsj" label="操作时间" min-width="120" header-align="center" align="center"></el-table-column>
                <el-table-column prop="yijian" label="意见" min-width="120" header-align="center" align="center"></el-table-column>
            </el-table>
            <span slot="footer" class="dialog-footer">
                <el-button @click="genzongFormData.dialogVisible = false">关闭</el-button>
            </span>
        </el-dialog>
    </div>
</template>

<script>
import {selecthtgzById} from '@/api/hetongrenwu/hetongyeji/hetongnd'
export default {
    name:"genzong-form",
    props:{
        genzongFormData:{
            dialogVisible:false,
            rowid:''
        },
    },
    data(){
        return{
            dialogVisible:false,
            tableData:[]
        }
    },
    watch:{

    },
    created(){
        //console.log("(this.genzongFormData111"+JSON.stringify(this.genzongFormData))
      if(this.genzongFormData.rowid){
        this.getDataList()
      }
    },
    methods:{

        getDataList(){
           //console.log("(this.genzongFormData222"+JSON.stringify(this.genzongFormData))
           //console.log(JSON.stringify(this.genzongFormData))
            selecthtgzById(this.genzongFormData.rowid).then(response => {
           //console.log(JSON.stringify(response.data)+"======")
            this.tableData=response.data.data;

            })
        }
    }
}
</script>

<style>

</style>
